//
// Created by 11510 on 2024/7/10.
//
#include "TcpConnection.h"
#include "EventLoop.h"

void TcpConnection::send2loop(const std::string &msg) {
    if(_eventLoop){
        _eventLoop->runInLoop(std::bind(&TcpConnection::send, this, msg));
    }
}